import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm'
import { Connection } from 'typeorm'
import { UserModule } from './user/user.module'
import { ChatModule } from './chat/chat.module'

@Module({
  imports: [
    TypeOrmModule.forRoot(),
    UserModule,
    ChatModule
  ]
})
export class AppModule {
  constructor(private readonly connection: Connection){}
}
